package factory_method_pattern.sample;

/**
 * 客户端主类
 * @author ricejson
 */
public class Main {
    public static void main(String[] args) {
        // 实例化具体的大学生实例
        LeiFeng leiFeng = new UndergraduateFactory().createLeiFeng("小明");
        leiFeng.sweep();
        leiFeng.wash();
        leiFeng.buyRice();
    }
}
